{include file="public/header-static"/}
{include file="public/sidebar"/}
<div id="main">
    {include file="public/header"/}
    <main class="main-content">
        <div class="container">
            <div class="page-header">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item">
                            <a href="#">首页</a>
                        </li>
                        <li class="breadcrumb-item active" aria-current="page">招聘详情</li>
                    </ol>
                </nav>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="card">
                        <div class="card-body">

                            <div class="form-group row">
                                <input type="hidden" name="id" value="{$info.id}">
                                <label for="" class="col-sm-1 col-form-label">企业名称<span
                                        class="color4">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" name="uid" value="{$info.enterprise}" class="form-control" placeholder="企业名称">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">创建者<span
                                        class="color4">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" name="uid" value="{$info.uid}" class="form-control" placeholder="创建者ID">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">社群名称<span
                                        class="color4">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" name="name" value="{$info.name}" class="form-control" placeholder="社群名称">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">企业二维码<span class="color4">*</span></label>
                                <div class="col-sm-4">
                                    <input type="hidden" class="form-control qrcode" name="qrcode" required=""
                                           aria-required="true" value="{$info.qrcode}">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-qrcode">

                                            <div class="file-iteme original">
                                                <div name="qrcode" class="handle" src="{$info.qrcode}">
                                                        <span class="fa fa-times"
                                                              style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img class="myImages" title='点我查看原图' src="{$info.qrcode}" onclick="lookimg(this.src)">
                                            </div>

                                        </div>
                                    </blockquote>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">是否代管<span
                                        class="color4">*</span></label>
                                <div class="col-sm-8">
                                    <input type="text" name="is_escrow" value="{$info.is_escrow}" class="form-control" placeholder="是否代管">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">社群简介<span class="color4">*</span></label>
                                <div class="col-sm-8">
                                        <textarea class="custom_text form-control" placeholder="社群简介"
                                                  name="desc">{$info.desc}</textarea>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">社群行业</label>
                                <div class="input-group col-sm-8">
                                    <input type="text" name="resourceCate" value="{$info.resourceCate}" class="form-control" placeholder="社群行业">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">封面</label>
                                <div class="col-sm-4">
                                    <input type="hidden" class="form-control logo1" name="logo" required=""
                                           aria-required="true"  value="{$info.logo}">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-logo">

                                            <div class="file-iteme original">
                                                <div name="logo" class="handle" src="{$info.logo}">
                                                        <span class="fa fa-times"
                                                              style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img class="myImages" title='点我查看原图' src="{$info.logo}" onclick="lookimg(this.src)">
                                            </div>

                                        </div>
                                    </blockquote>
                                </div>
                            </div>

                            <button id="return" class="btn btn-secondary">返回</button>

                        </div>
                    </div>
                </div>
            </div>

        </div>
    </main>

    {include file="public/footer"/}
    <script type="text/javascript">

        $('#return').click(function () {
            var source = "{$source}";
            console.log(source);
            var url = '{:url("/community/index")}';
            if (source == 1) {
                url = '{:url("/check/index")}';
            }
            window.location.href = url + '?type=5';
        });

    </script>


</div>